
//------------------------------------------------------------------------------

using Apps.Models;
using System;
using System.ComponentModel.DataAnnotations;
namespace Apps.Models.PUB
{

	public partial class PUB_DEV_MEDIASERVERModel:Virtual_PUB_DEV_MEDIASERVERModel
	{
		
	}
	public class Virtual_PUB_DEV_MEDIASERVERModel
	{
		[Display(Name = "视频存储服务器")]
		public virtual string MEDIASERVER_ID { get; set; }
		[Display(Name = "设备名称"),Required]
		public virtual string MEDIASERVER_NAME { get; set; }
		[Display(Name = "设备类型)"),Required]
		public virtual int MEDIASERVER_TYPE { get; set; }
		[Display(Name = "登陆用户"),Required]
		public virtual string USERNAME { get; set; }
		[Display(Name = "登陆密码"),Required]
		public virtual string PASSWORD { get; set; }
		[Display(Name = "内网IP"),Required,RegularExpression(@"((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))",ErrorMessage ="请输入正确格式的IP地址")]
		public virtual string IP { get; set; }
		[Display(Name = "内网HTTP端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual short HTTP_PORT { get; set; }
		[Display(Name = "内网RTSP端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual short RTSP_PORT { get; set; }
		[Display(Name = "内网SERVER端口"),Required, RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual short SERVER_PORT { get; set; }
		[Display(Name = "外网IP"), RegularExpression(@"((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))", ErrorMessage = "请输入正确格式的IP地址")]
		public virtual string WAN_IP { get; set; }
		[Display(Name = "外网HTTP端口"), RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> WAN_HTTP_PORT { get; set; }
		[Display(Name = "外网RTSP端口"), RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> WAN_RTSP_PORT { get; set; }
		[Display(Name = "外网SERVER端口"), RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "端口必须为非零的正整数")]
		public virtual Nullable<short> WAN_SERVER_PORT { get; set; }
		[Display(Name = "主目录")]
		public virtual string HOME_DIR { get; set; }
		[Display(Name = "网络状态")]
		public virtual Nullable<bool> NET_STATUS { get; set; }
		[Display(Name = "网络诊断")]
		public virtual Nullable<System.DateTime> NET_STATUS_TIMS { get; set; }
		}
}
